package com.example.vertification.entity;

import lombok.Data;

import javax.persistence.*;

@Entity
@Table(name = "userWithPage")
@Data // 这个注解会自动生成getter、setter、equals、hashCode和toString方法
public class UserWithPageEntity {

    @Id
    @Column(nullable = false)
    private long uid;

    @Column(columnDefinition = "TEXT",nullable = false)
    private String hobbies;


    public UserWithPageEntity(Long uid, String hobbies) {
        this.uid=uid;
        this.hobbies=hobbies;
    }

    public UserWithPageEntity() {

    }
}